<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

</body>
<script>
var original = {
    a: 1,
    b: {
        a: 1,
        c: 2
    }
}
// 使用 JSON 序列化和反序列化
const deepCopy = JSON.parse(JSON.stringify(original));

</script>
</html>